package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Time;
import java.util.Date;


/**
 * The persistent class for the weixiuonac database table.
 * 
 */
@Entity
@Table(name="weixiuonac")
@NamedQuery(name="Weixiuonac.findAll", query="SELECT w FROM Weixiuonac w")
public class Weixiuonac implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String onacid;

	private Time oancacceptt;

	@Temporal(TemporalType.DATE)
	private Date onacacceptd;

	private byte onacdelete;

	private String onacman;

	//bi-directional many-to-one association to Contact
	@ManyToOne
	@JoinColumn(name="onaclinkman")
	private Contact contact;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="onacclient")
	private Customer customer;

	//bi-directional many-to-one association to Qatype
	@ManyToOne
	@JoinColumn(name="onactype")
	private Qatype qatype;

	public Weixiuonac() {
	}

	public String getOnacid() {
		return this.onacid;
	}

	public void setOnacid(String onacid) {
		this.onacid = onacid;
	}

	public Time getOancacceptt() {
		return this.oancacceptt;
	}

	public void setOancacceptt(Time oancacceptt) {
		this.oancacceptt = oancacceptt;
	}

	public Date getOnacacceptd() {
		return this.onacacceptd;
	}

	public void setOnacacceptd(Date onacacceptd) {
		this.onacacceptd = onacacceptd;
	}

	public byte getOnacdelete() {
		return this.onacdelete;
	}

	public void setOnacdelete(byte onacdelete) {
		this.onacdelete = onacdelete;
	}

	public String getOnacman() {
		return this.onacman;
	}

	public void setOnacman(String onacman) {
		this.onacman = onacman;
	}

	public Contact getContact() {
		return this.contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Qatype getQatype() {
		return this.qatype;
	}

	public void setQatype(Qatype qatype) {
		this.qatype = qatype;
	}

}